<template>
	<view class="user-container">
		<view class="flex-sub text-center bg-white">
			<view class="solid-bottom text-xl padding" v-if="notice.filePath">
				<img :src="notice.filePath" alt="">
			</view>
			<view class="solid-bottom text-xl padding">
				<text class="text-black text-bold">{{notice.title}}</text>
			</view>
			<view class="footer">开始时间: {{notice.startTime}}</view>
		</view>
		<view class="flex-sub bg-white">
			<view class="content">
				<!-- <rich-text class="solid-bottom text-df padding" :nodes="notice.context"></rich-text> -->
				<!-- <view class="footer">{{notice.content}}</view> -->
				<!-- <jyf-parser :html="notice.content" ref="article"></jyf-parser> -->

			</view>
		</view>
	</view>
</template>

<script>
	/** detail.js **/

	import context from '../../../lib/java110/Java110Context.js'
	const constant = context.constant; //获取app实例
	import conf from '../../../conf/config.js'
	import {
		replaceImgSrc
	} from '../../../lib/java110/utils/ImageUtil.js'
	//获取app实例
	const app = getApp().globalData;

	// import jyfParser from "@/components/jyf-parser/jyf-parser";

	export default {
		data() {
			return {
				notice: '',
				noticeId: '',
				communityId: ''
			};
		},

		components: {
			// jyfParser
		},

		onLoad: function(options) {
			context.onLoad(options);
			this.notice = JSON.parse(options.noticeId);
			this._loadNoticeDetail();
		},
		onShow: function() {
			let that = this; // that.setData({
			//     userInfo: app.globalData.userInfo
			// });
		},
		methods: {

		}
	};
</script>
<style>
	@import "./detail.css";
</style>
